FROM alpine:3.12.1

ARG VER=1.0.1

RUN apk update --no-cache --no-progress
RUN apk add privoxy --no-cache --no-progress
RUN apk add openvpn --no-cache --no-progress

ENV FILE_START start.vpn.cray.sh
ENV START /usr/local/bin/$FILE_START


ADD $FILE_START /usr/local/bin/
ADD config /etc/privoxy/

RUN chmod +r /etc/privoxy/config &&\
    chmod +x $START

CMD $START

EXPOSE 8118

